import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
	{ path: '', redirectTo: 'index', pathMatch: 'full' },
	{
		path: 'index',
		loadChildren: () => import('./view/page/index.page-module').then(m => m.IndexPageModule)
	}
];

@NgModule({
	imports: [
		RouterModule.forRoot(routes, {
			preloadingStrategy: PreloadAllModules,
			useHash: true,
		})
	],
	exports: [RouterModule]
})
export class AppRoutingModule {
}
